package com.urg.parser;

public class Expression {
	private String expressionString;
	private String operand1;
	private String operator;
	private String operand2;

	public Expression(String expression) {
		this.expressionString = expression;
		System.out.println(expression);
	}

	public Expression(String operand1, String operator, String operand2) {
		super();
		this.operand1 = operand1;
		this.operator = operator;
		this.operand2 = operand2;
	}

	public String getOperand1() {
		return operand1;
	}

	public void setOperand1(String operand1) {
		this.operand1 = operand1;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getOperand2() {
		return operand2;
	}

	public void setOperand2(String operand2) {
		this.operand2 = operand2;
	}

	@Override
	public String toString() {
		return this.expressionString;
	}
}
